<?php
// View for admin - player edit
require_once WACT_ROOT.'controller/controller.inc.php';
require_once WACT_ROOT .'controller/form.inc.php';
require_once WACT_ROOT.'view/view.inc.php';
require_once WACT_ROOT .'view/formview.inc.php';

require_once APP_ROOT . 'view/common/layout.formview.php';
require_once APP_ROOT . 'view/common/layout.view.php';

require_once 'model/common/user.php';
require_once 'model/common/league.php';
require_once 'model/common/categories.php';
require_once 'model/common/date.php';

class LeaguesSubmitView extends LayoutFormView {

	var $form; // form controller

    function LeaguesSubmitView($TemplateFile, &$form) {
    //	$form=null;
        parent :: LayoutFormView($TemplateFile);
        $this->form = $form;
    }




    function prepare(&$controller, &$request, &$responseModel) {
    	parent::prepare($controller, $request, $responseModel);
    	$this->Template->set('docbase',HOST);
    	$this->Template->set('skip_left_menu',true);
    	$this->Template->set('app_name','.');
        
		$this->Template->set('SITE_CSS',Site::getSiteTemplateCSS());
		$this->Template->set('SITE_BASE',Site::getSiteTemplateBase());
		$this->Template->set('SITE_TITLE',Site::getTitle());
 

    	
    	$template =& $this->Template;
    	$this->form->prepare($controller, $request, $responseModel,$template);
    	return;


    }

}






?>